---
title: Valyu Tools
---

## Code

```python cookbook/tools/valyu_tools.py
from agno.agent import Agent
from agno.tools.valyu import ValyuTools

agent = Agent(
    instructions=[
        "You are a research assistant that helps find academic papers and web content",
        "Use Valyu to search for high-quality, relevant information",
        "Provide detailed analysis of search results with relevance scores",
    ],
    tools=[ValyuTools()],
    markdown=True,
)

agent.print_response("Find recent research papers about machine learning in healthcare")
```

## Usage

<Steps>
  <Snippet file="create-venv-step.mdx" />

  <Step title="Set your API keys">
    ```bash
    export VALYU_API_KEY=your-valyu-api-key
    export OPENAI_API_KEY=xxx
    ```
  </Step>

  <Step title="Install libraries">
    ```bash
    pip install -U valyu openai agno
    ```
  </Step>

  <Step title="Run Agent">
    <CodeGroup>
    ```bash Mac
    python cookbook/tools/valyu_tools.py
    ```

    ```bash Windows
    python cookbook/tools/valyu_tools.py
    ```
    </CodeGroup>
  </Step>
</Steps>
